package com.arpa.wms.mapper;

import com.arpa.wms.domain.entity.ListTrend;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 单量趋势统计(定时任务) Mapper 接口
 * </p>
 *
 * @author LEO
 * @since 2021-06-09
 */
public interface ListTrendMapper extends BaseMapper<ListTrend> {

    @Select("select a.quantity, a.gmt_created from wms_list_trend a where type = #{type} order by a.gmt_created desc LIMIT 0,30")
    List<String> orderQuantityTrend(String type);

}
